<div class="docspacer">
    <div class="page">
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="headpad">
                    <div class="pageheader">
                        <div class="span8">
                            <h1>Pending PDR Case Summaries</h1>
                            <?php get_template_part('templates/content', 'breadcrumb'); ?>
                        </div>
                        <div class="span4">
                            <p class="muted pull-right pdrfiledby hidden-phone"><img class="star-spa"
                                                                                     alt="Petition filed by SPA"
                                                                                     src="<?php echo get_template_directory_uri() ?>/img/star.png">denotes
                                a petition filled by SPA</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php //get_template_part('templates/content','pdr'); ?>
<div class="page">
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="sharethis pull-right">
                <span class='st_linkedin'></span>
                <span class='st_facebook'></span>
                <span class='st_twitter'></span>
                <span class='st_email'></span>
                <span class='st_sharethis'></span>
            </div>
            <div class="headpad" id="MainContent">
                <?php get_template_part('templates/page', 'alert'); ?>
                <div>
                    <div>
                        <div class="span12 pdrhome-wrapper">
                            <div class="row-fluid pdrmargintop">
                                <?php
                                $args = array(
                                    'post_type' => 'pdr',
                                    'posts_per_page' => 8,
                                    'meta_key' => 'display_date',
                                    'orderby' => 'meta_value_date',
                                    'order' => 'DESC'
                                );
                                $pdr_query = new WP_Query($args);

                                for ($i = 0; $i < ($pdr_query->post_count / 2) * 2; $i = $i + 2) {
                                    ?>
                                    <div class="row-fluid pdrmargintop">
                                        <div class="span6 bg-pdr">
                                            <div class="box">
                                                <h4><?php $pdr_query->posts[$i]->title; ?></h4>

                                                <div class="date pull-right">06/27/2013</div>
                                                <div class="subtitle muted"><img
                                                        src="<?php echo get_template_directory_uri() ?>/img/star.png"
                                                        alt="Petition filed by SPA" class="star-spa">PD-1596-12
                                                </div>
                                                <p class="p-min-height"></p>

                                                <div class="text-center"><a class="btn btn-primary btn-small btn-pdr"
                                                                            href="<?php echo get_the_permalink($pdr_query->posts[$i]->ID); ?>">Read
                                                        Summary</a></div>
                                            </div>
                                        </div>
                                        <div class="span6 bg-pdr">
                                            <div class="box">
                                                <h4><?php $pdr_query->posts[$i + 1]->title; ?></h4>

                                                <div class="date pull-right">06/27/2013</div>
                                                <div class="subtitle muted"><img
                                                        src="<?php echo get_template_directory_uri() ?>/img/star.png"
                                                        alt="Petition filed by SPA" class="star-spa">PD-1596-12
                                                </div>
                                                <p class="p-min-height"></p>

                                                <div class="text-center"><a class="btn btn-primary btn-small btn-pdr"
                                                                            href="<?php echo get_the_permalink($pdr_query->posts[$i + 1]->ID); ?>">Read
                                                        Summary</a></div>
                                            </div>
                                        </div>
                                    </div>
                                <?php
                                }
                                for ($i = ($pdr_query->post_count / 2) * 2;
                                $i < $pdr_query->count;
                                $i++){
                                ?>
                                <div class="row-fluid pdrmargintop">
                                    <div class="span6 bg-pdr">
                                        <div class="box">
                                            <h4><?php $pdr_query->posts[$i]->title; ?></h4>

                                            <div class="date pull-right">06/27/2013</div>
                                            <div class="subtitle muted"><img
                                                    src="<?php echo get_template_directory_uri() ?>/img/star.png"
                                                    alt="Petition filed by SPA" class="star-spa">PD-1596-12
                                            </div>
                                            <p class="p-min-height"></p>

                                            <div class="text-center"><a class="btn btn-primary btn-small btn-pdr"
                                                                        href="<?php echo get_the_permalink($pdr_query->posts[$i]->ID); ?>">Read
                                                    Summary</a></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <?php
                            }
                            ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
